package com.beijiteshop.shop.ui.notification.repo

import com.beijiteshop.libcommon.network.ext.BaseRsp
import com.beijiteshop.libcommon.network.ext.ResultRsp
import com.beijiteshop.shop.model.api.response.NotificationCountBean
import com.beijiteshop.shop.model.api.response.NotificationDetailListBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/16 11:10
 * @Description
 */
interface NotificationService {

    @GET("/api/message/getmessagenew")
    fun getNotificationCount(): Call<BaseRsp<NotificationCountBean>>

    @GET("/api/message/getmessageinfo")
    fun getNotificationList(@Query("page")page: Int): Call<BaseRsp<MutableList<NotificationDetailListBean>>>

    @POST("/api/message/islook")
    fun setOrderReadState(@Query("busMessageId")busMessageId: String): Call<ResultRsp>

    @POST("/api/message/islookcoupon")
    fun setCouponReadState(@Query("busMessageId")busMessageId: String): Call<ResultRsp>

    @GET("/api/message/allread")
    fun setAllRead(): Call<ResultRsp>
}